package guda.talk.biz.common.util;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;

/**
 * Created by well on 15/3/14.
 */
public class SpringBeanFactoryTool implements BeanFactoryAware {
    private static BeanFactory beanFactory;

    public SpringBeanFactoryTool() {
    }

    public static BeanFactory getBeanFactory() {
        return beanFactory;
    }

    public void setBeanFactory(BeanFactory bean) throws BeansException {
        beanFactory = bean;
    }
}
